package cn.juque.redoctopus.api.constants;

import cn.juque.common.constants.BaseMessageEnum;

/**
 * @author nuoka
 * @version 1.0.0
 * <li>IntelliJ IDEA</li>
 * <li>cn.juque.redoctopus.api.constants</li>
 * @date 2020/9/10 0:30
 **/
public enum  OctopusMsgEnum implements BaseMessageEnum {

    /**
     * enum
     */
    PARRAM_NULL("0071004", "入参不能为空"),
    PARRAM_ERROR("0071005", "入参错误"),
    SYSTEM_ERROR("007500", "服务异常"),
    SYSTEM_FAIL("007501", "服务操作失败"),
    CREATE_INDEX_FAIL("007501", "创建索引失败"),
    DEL_INDEX_FAIL("007502", "删除索引失败"),
    ;

    /**
     * 消息码
     */
    private String code;

    /**
     * 消息
     */
    private String msg;

    OctopusMsgEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
